package com.lg.cms.service;

import com.lg.cms.dto.PermissionDTO;
import com.lg.cms.entity.Permission;
import com.baomidou.mybatisplus.extension.service.IService;
import com.lg.cms.mapper.PermissionMapper;
import com.lg.cms.vo.admin.PermissionVO;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * <p>
 * 权限表 服务类
 * </p>
 *
 * @author lg
 * @since 2020-09-21
 */
public interface PermissionService extends IService<Permission> {


    /**
     * 权限数据初始化
     */
    void init();

    /**
     * 根据角色id获取权限列表
     * @param roleId
     * @return List<RolePermissionDTO>
     */
    List<PermissionVO> listByRoleId(Integer roleId);

}
